import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_user_notice' })
export default class SysUserNotice extends BaseEntity {
  @PrimaryGeneratedColumn()
  @ApiProperty()
  id: number;

  @ApiProperty()
  @Column()
  content: string;

  @ApiProperty()
  @Column()
  title: string;

  @ApiProperty()
  @Column()
  status: number;

  @ApiProperty()
  @Column()
  type: number;

  @ApiProperty()
  @Column({ name: 'join_id', type: 'bigint' })
  joinId: number;

  @ApiProperty()
  @Column({ name: 'user_id' })
  userId: number;

  @ApiProperty()
  @Column({ name: 'read_status' })
  readStatus: number;

  @ApiProperty()
  @Column({ name: 'create_user_id' })
  createUserId: number;
}
